<div class="col_02" id="rightside">
					<div class="col_02_01" id="sysContent_box">
						<div class="main-wrap">
							<div class="m-t">
								<h2>Messages > {if $op_folder == 1}Inbox{else}Sent{/if}</h2>
							</div>
							<div class="m-c">
   	<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-brown.css" title="brown" />
   <script type="text/javascript" src="jscalendar/calendar.js"></script>
   <script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
   <script type="text/javascript" src="jscalendar/calendar-setup.js"></script>

   <form action="myemails.php" method="GET">
   <table width="100%" border="0" cellpadding="0" cellspacing="5"  class="table_style" >
			<tr>
				<td colspan="2">Keywords:<br /><input  type="text" name="op_keywords"  maxlength="200" value="{$op_keywords}" style="width:360px">
				</td>
				<td>Date: <br />
					<input  type="text" name="op_date" size="22" id="f_date_c" readonly value="{$op_date}"><img src="images/img.gif" id="f_trigger_c" style="cursor: pointer; border: 0px solid red;" align="absmiddle" title="Date selector" />
					{literal}
					<script type="text/javascript">
					Calendar.setup({
						inputField     :    "f_date_c",     // id of the input field
						ifFormat       :    "%m/%d/%Y",      // format of the input field
						button         :    "f_trigger_c",  // trigger for the calendar (button ID)
						align          :    "Tl",           // alignment (defaults to "Bl")
						singleClick    :    true
					});
					</script>
					{/literal}
				</td>
			</tr>
			<tr>
				<td>{if $op_folder == 1}From{else}Sent To{/if}:</td>
				<td>Type:</td>
				<td>{if $op_folder == 1}Status:{/if}</td>
			</tr>
			<tr>
				<td>
					<input  type="text" name="op_fromname" maxlength="200" value="{$op_fromname}" style="width:175px">
				</td>
				<td>
					<select name="op_type" >
						<option value="">All</option>
						<option value="0" {if $op_type=="0"}selected{/if}>Message</option>
						<option value="1" {if $op_type=="1"}selected{/if}>Recruiter</option>
						<option value="2" {if $op_type=="2"}selected{/if}>Candidate</option>
						<option value="3" {if $op_type=="3"}selected{/if}>Invites</option>
					</select>
				</td>
				<td>
				{if $op_folder == 1}
					<select name="op_state">
						<option value="">All</option>
						<option value="0" {if $op_state=="0"}selected{/if}>unread</option>
						<option value="1" {if $op_state=="1"}selected{/if}>read</option>
					</select>
				{/if}
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<input name="op_folder" value="{$op_folder}" type="hidden">
					<input class="bginput button-secondary" accesskey="y" type="submit" name="submit" value=" Search ">
					<input class="bginput button-secondary" accesskey="r" type="button" name="Input" value=" Clear "  onclick="turnto('myemails.php?op_folder={$op_folder}')">
				</td>
			</tr>
		</table>
   </form>
</div>
</div>
</div>{literal}
<script type="text/javascript">
checked=false;
function checkedAll() {
	var aa= document.getElementById('fm1');
	 if (checked == false)
	  {
	   checked = true
	  }
	 else
	  {
	  checked = false
	  }
	for (var i =0; i < aa.elements.length; i++) 
	{
	 aa.elements[i].checked = checked;
	}
}
</script>
{/literal}
<div class="col_02_02" id="side_box">
	<div class="signIn">
		<h2 class="m_t m_t_gray">Member  Center</h2>
		<div class="m_c">
			<div class="mySigned" id="J_sign_form">
				<div id="loginboxx">
					<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
					<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
					
					<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
				</div>
			</div>
		</div>
		<div class="m_f"></div>
	</div>
	<div class="panel_box mt_10">
		<h2 class="m_t m_t_gray">Join a Chat </h2>
		<div class="m_c">
			<div>
				<ul>
					<li><a href="findchats.php">Skype Chat</a></li>
					<li><a href="findwebinars.php">Webinars</a></li>
				</ul>
			</div>
			<p class="info"><a href="#"></a></p>							
		</div>
		<div class="m_f"></div>
	</div>
</div>
<div class="clearfix"></div>

<div class="module_box mt_10" id="findResults">
	<div class="m_t"><h2>Search Result:</h2><div style="float:right"><input type="button" value="New" onclick="location.href='sendemail.php'" class="button-secondary"></div></div>
	<div class="m_c">
<form method="POST" action="?action=del&op_folder={$op_folder}" id="fm1" onsubmit="javascript:return confirm('Sure you want to delele this?');">
	  	 {$page}
	  <table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableGrey">
            <tr class="white">
				<th width="30%"><a href="myemails.php?&order1={$order_arr.1}&swh=1&tp=1{$otherParams}" >{if $op_folder == 1}From{else}Sent To{/if}{$image_arr.1}</a></th>
                <th width="30%"><a href="myemails.php?&order2={$order_arr.2}&swh=2&tp=1{$otherParams}" >Subject{$image_arr.2}</a></th>
                <th width="10%"><a href="myemails.php?&order3={$order_arr.3}&swh=3&tp=1{$otherParams}" >Type{$image_arr.3}</a></th>
                <th width="10%"><a href="myemails.php?&order4={$order_arr.4}&swh=4&tp=1{$otherParams}" >Date{$image_arr.4}</a></th>
				<th width="12%"><input type="checkbox" name="" onClick="checkedAll()"/><input type="submit" value="Delete" class="button-secondary"/></th>
            </tr>
	      {section name=custom loop=$messageList}
            <tr  class="hotline {cycle values="odd,even"}">
				<td>{if $op_folder == 1}{$messageList[custom].e_fromname}{else}{$messageList[custom].e_toname}{/if}</td>
				{if $messageList[custom].e_isread == 0 && $op_folder == 1}
					<td><a href="{$messageList[custom].detailLink}"><b>{$messageList[custom].e_subject}</b></a></td>
				{else}
					<td><a href="{$messageList[custom].detailLink}">{$messageList[custom].e_subject}</a></td>
				{/if}
				<td>{$messageList[custom].e_type}</td>
				<td>{$messageList[custom].e_created}</td>
				<td><input type="checkbox" name="delId[]" value="{$messageList[custom].e_id}" />
					{if $messageList[custom].e_appIsApplied == 1 || $messageList[custom].e_isreplied == 1}
						<a href="###" onmouseover="Tip('Already Replied', WIDTH, 100,OFFSETY,20, SHADOW, true)"><img src="images/0308.png" border="0" align="absmiddle" /></a>
					{/if}
				</td>
            </tr>
	      {sectionelse}
		   <tr  class="hotline {cycle values="odd,even"}">
			<td colspan="9"><font color=red>No messages was found for selected field(s).<br>  Try again.  Please note 'All' will search for all available data in that field.</font></td>
		   </tr>
	      {/section}
     </table>
	 {$page}
  </form>
</div>
</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
